package com.bjzs.es.study.domain;

import lombok.ToString;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * dolphin任务实例索引
 */
@ToString
@Document(indexName = "dolphin_task_instance_index")
public class DolphinTaskInstanceTest {

    @Id
    private String id;

    @Field(type = FieldType.Long)
    private Long rid;

    @Field(name = "project_code", type = FieldType.Long)
    private Long projectCode;

    @Field(type = FieldType.Text)
    private String name;

    @Field(name = "process_name", type = FieldType.Text)
    private String processName;

    @Field(name = "executor_id", type = FieldType.Integer)
    private Integer executorId;

    @Field(name = "host_name", type = FieldType.Text)
    private String hostName;

    @Field(type = FieldType.Integer)
    private Integer state;

    @Field(name = "start_time", type = FieldType.Long)
    private Long startTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Long getRid() {
        return rid;
    }

    public void setRid(Long rid) {
        this.rid = rid;
    }

    public Long getProjectCode() {
        return projectCode;
    }

    public void setProjectCode(Long projectCode) {
        this.projectCode = projectCode;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getProcessName() {
        return processName;
    }

    public void setProcessName(String processName) {
        this.processName = processName;
    }

    public Integer getExecutorId() {
        return executorId;
    }

    public void setExecutorId(Integer executorId) {
        this.executorId = executorId;
    }

    public String getHostName() {
        return hostName;
    }

    public void setHostName(String hostName) {
        this.hostName = hostName;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Long getStartTime() {
        return startTime;
    }

    public void setStartTime(Long startTime) {
        this.startTime = startTime;
    }
}
